// 三部曲
import { reqGetBannerList } from "@/api";
const actions = {
    async getBannerList({commit}) {
        let result = await reqGetBannerList();
        if(result.code == 200){
            commit("REQGETBANNERLIST",result.data)
        }
    }
};
const mutations = {
    REQGETBANNERLIST(state,bannerList){
        state.bannerList = bannerList
    }
};
const state = {
    bannerList: [],
};
const getters = {};

export default {
    namespaced:true,
    actions,
    mutations,
    state,
    getters
}